#pragma once
#include "ClockSource.h"
#include "event.h"
namespace Clock
{
	class ClockSource;

	class ClockListener:public IListener<ClockSource,ClockListener>
	{
		
		typedef IListener<ClockSource,ClockListener> Base;
	public:
		virtual void OnClock(SourceType& clock)=0;
	protected:
	
		ClockListener():Base(&ClockListener::OnClock){};
	
	};
}